﻿<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>北京 - 资讯 - 锐车</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta content="锐车" name="keywords" />
	<meta content="锐车" name="description" />
   	<link rel="stylesheet" href="/static/layui/css/layui.css">
	<link rel="stylesheet" href="/static/home/Css/swiper.min.css">
	<link rel="stylesheet" type="text/css" href="/static/home/Css/style.css">
	<script type="text/javascript" src="/static/home/Scripts/jquery.js"></script>
	<script type="text/javascript" src="/static/layui/layui.js"></script>
	<script type="text/javascript" src="/static/home/Scripts/common.js"></script>
	<script type="text/javascript" src="/static/home/Scripts/swiper.min.js"></script>
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
	<script>
		layui.use('laypage', function(){
			var laypage = layui.laypage;
			laypage.render({
				elem: 'page'
				,count: 18
				,limit: 10
				,curr:1
				,jump: function(obj, first){
					//首次不执行
					if(!first){
						location.href = "/news/0/"+obj.curr;
					}
				}
				,theme: '#FF6600'
				,prev: '<em>←</em>'
				,next: '<em>→</em>'
			});
		});
	</script>
	</head>
	<body>
	<script language="JavaScript">
$(function(){
	$(".nav_all_types").hover(function(){
		$(".show_all_types .layui-icon").html("&#xe619;");
		$(".all_types_box").show();
	},function(){
		$(".show_all_types .layui-icon").html("&#xe61a;");
		$(".all_types_box").hide();
	});

	//城市选择
	$(".citymark a").click(function() {
		var mark = $(this).attr("dataid");
		var citytop = $(".city-list").scrollTop()+$("#"+mark).position().top - 50;
		$(".city-list").animate({
			scrollTop: citytop
		}, {duration: 500, easing: "swing"});
		return false;
	});

	$(".selectcity").click(function(event) {
		if($(".citylist-box").is(":hidden")){
			$(this).addClass("whitebg");
			$(".selectcity .layui-icon").html("&#xe619;");
			$(".citylist-box").removeClass("layui-hide");
		}
		else{
			$(this).removeClass("whitebg");
			$(".selectcity .layui-icon").html("&#xe61a;");
			$(".citylist-box").addClass("layui-hide");
		}
		event.stopPropagation();//这句是必须
	});


	$(document).bind("click",function(e){
		var target  = $(e.target);
		if(target.closest(".citylist-box").length == 0){
			$('.selectcity').removeClass("whitebg");
			$(".selectcity .layui-icon").html("&#xe61a;");
			$(".citylist-box").addClass("layui-hide");
		}
		e.stopPropagation();
	});

	$(".changecity").click(function() {
		var city = $(this).attr("data");
		$.ajax({
			url: "/index.php?m=ajax&ajax=1&changecity=1",
			data:{city:city},
			type: "get",
			dataType: "json",
			success: function(data){
				if(data.status == 'y'){
					window.location.reload();
				}
			}
		});
	});
})
</script>
{include file="public/head"/}
	<div class="layui-container layui-breadcrumb-nav">
		<span class="layui-breadcrumb">
		  <a href="/">首页</a>
		  <a><cite>资讯</cite></a>
		</span>
	</div>
	<div class="layui-container">
		<div class="layui-row layui-col-space20">
			<div class="layui-col-md3">
				<div class="catbox">
					{foreach $le1 as $v1}
					<h3><a href="{:url('home/newshow/news')}?id1={$v1.id}">{$v1.name}</a></h3>
					<ul class="catlist layui-clear">
						{foreach $le2 as $v2}
						{if $v2.parentid==$v1.id}
						<li><a href="{:url('home/newshow/news')}?id2={$v2.id}">{$v2.name}</a></li>
						{/if}
						{/foreach}
					</ul>
					{/foreach}
				</div>
			</div>
			<div class="layui-col-md9">
				{foreach $con as $v3}
				<div>
					<div class="list-news layui-clear">
						<div class="img">
							<img src="{$a}" width='150px' height='150px'>
						</div>
						<div class="info">
							<h4 class="list-news-item-title">
								<a href="{:url('home/newshow/newsinfo')}?pid={$v3.parentid}&id={$v3['id']}" class="list-news-item" target="_blank">{$v3.title}</a>
							</h4>
							<p class="list-news-item-text">{$v3.content}</p>
							<p class="list-news-item-time">{:date('Y/m/d',$v3.time)}</p>
						</div>
					</div>				
				</div>
				{/foreach}
			</div>
			<div class="page" style="float:right">
					{$con|raw}
			</div>
			</div>
		</div>
	</div>
	<!--版权-->
{include file="public/foot"/}